<template>
  <div class="tt">
    <div class="zz">
      <p><van-icon name="arrow-left" @click="ddf"/></p>
      <p>楼市圈</p>
      <p></p>
    </div>
    <div class="xx">
      <div class="bb" v-for="(item, index) in list" :key="index">
        <div class="kks">
          <p><img :src="item.b_avatar" class="vvt"/></p>
          <p>{{item.b_nickname}}</p>
        </div>
        <div class="sst">
           <p>{{item.content}}</p>
        </div>
        <div class="oop">
          <p><img v-for="(v,ii) in item.img_list" :key="ii" :src="v" alt=""></p>
        </div>
      </div>
    </div>
    <div class="ks">
      <van-icon name="edit" @click="vv"/>
    </div>
  </div>
</template>

<script>
import axios from "axios"
export default {
  data(){
    return{
      aa:[],
      lsw:{},
      list: []
    }
  },
   created(){
    axios.get("/houseRing").then((res)=>{
      this.list=res.data.list.map(item=>{
        return {
          ...item,
          b_avatar:'http://47.111.14.227:7001' + item.b_avatar,
          img_list:item.img_list.split(',').map(item1=>{
            return 'http://47.111.14.227:7001' + item1
          })
        }
      });
      console.log(this.list);
    })
  },
  methods: {
    del: function(idx) {
      this.goods.splice(idx, 1);
    },
    vv(){
        this.$router.push('/hh')
    },
    ddf(){
      this.$router.go(-1)
    },
  },
};
</script>

<style>
.sst p{
  padding-left: 20px;
}
.oop{
  display: flex;
}
.oop img{
 width: 150px;
 height: 100px;
 padding-left: 20px;
 margin-top: 10px;
}
.kks{
  display: flex;
  align-items: center;
}
.vvt{
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.vs{
  width: 90%;
  height: 300px;
  margin-left: 20px;
}
.vs img{
  width: 100%;
  height: 100%;
}
.cc{
  height: 80px;
  display: flex;
  align-items: center;
}
.cc img{
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.cc p{
  padding-left: 10px;
  font-weight: bold;
  font-size: 14px;
}
.tt{
    display: flex;
    flex-direction: column;
    height: 100%;
}
.xx{
    flex: 1;
    overflow-y: scroll;
}
.ks{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: fixed;
    bottom: 60px;
    background:palegreen;
    margin-left: 280px;
    text-align: center;
    line-height: 60px;
}
.bb button{
   margin-top: 20px; 
   margin-left: 150px;
   border: 0;
   background: 0;
   outline: none;
   color: aqua;
   font-weight: bold;
}
.zz {
  height: 50px;
  background: blue;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zz p{
  padding: 0 20px;
  color: white;
}
</style>
